package top.cjwtx.holy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.cjwtx.holy.dao.UserDtoDao;
import top.cjwtx.holy.pojo.dto.UserDTO;
import top.cjwtx.holy.service.IUserService;

/**
 * 用户服务层
 */
@Service
public class UserService implements IUserService {

    @Autowired
    private UserDtoDao userDao;

    /**
     * 根据账号类型及用户账号查询用户信息
     * @param account
     * @param accountType
     * @return
     */
    @Override
    public UserDTO findUserDTOByUserNameAndType(String account, Integer accountType) {
        UserDTO userDTO=userDao.findUserDTOByUserNameAndType(account,accountType);
        return userDTO;
    }
}
